import newRequest from '@/utils/newRequest'
import { mergeParams } from '@/utils'

// 分页节假日表单库维护-查询
export function getSysholiday(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/SYS/Sysholiday/doQueryPage',
    method: 'post',
    data
  })
}

export function addSysholiday(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/SYS/Sysholiday/doSave',
    method: 'post',
    data
  })
}

// 修改
export function updateSysholiday(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/SYS/Sysholiday/doUpdate',
    method: 'put',
    data
  })
}

// 删除
export function delSysholiday(query) {
  const data = mergeParams(query)
  return newRequest({
    url: '/SYS/Sysholiday/doDelete',
    method: 'delete',
    data
  })
}
